import instance from "./axios";
// 登录
export let dlapi = (values) => {
    // 发起一个post请求
    return instance({
        method: 'post',
        url: '/api/login',
        data: {
           ...values
        }
    });
}
// 车票
export let trainapi = (values) => {
    // 发起一个post请求
    return instance({
        method: 'post',
        url: '/api/trip/train',
        data: {
           ...values
        }
    });
}
// 身份证
export let orcapi = (file) => {
    // 发起一个post请求
    return instance({
        method: 'post',
        url: '/api/orc/upload/image',
        data: file
    });
}